package com.jspx.txweb.table;

import com.jspx.json.NotExpose;
import com.jspx.sober.annotation.Column;
import com.jspx.sober.annotation.IDType;
import com.jspx.sober.annotation.Id;
import com.jspx.sober.annotation.Table;
import com.jspx.utils.StringUtil;

import java.io.Serializable;
import java.util.Date;

@Table(name = "jspx_sms_send_log", caption = "短信发送日志")
public class SmsSendLog implements Serializable {
    @Id(auto = true,type= IDType.serial)
    @Column(caption="ID",notNull = true)
    private long id;

    @Column(caption = "短信服务器ID", length = 30, notNull = true)
    private String regionId = StringUtil.empty;

    @Column(caption = "手机号", length = 50, notNull = false)
    private String phoneNumbers = StringUtil.empty;

    @Column(caption = "签名", length = 40, notNull = true)
    private String signName = StringUtil.empty;

    @Column(caption = "模板ID", length = 30,  notNull = true)
    private String templateCodeId = StringUtil.empty;

    @NotExpose
    @Column(caption = "验证号", length = 250, notNull = true)
    private String templateValue = StringUtil.empty;

    @Column(caption = "返回消息", length = 100, notNull = true)
    private String message = StringUtil.empty;

    @Column(caption = "请求ID", length = 40, notNull = true)
    private String requestId = StringUtil.empty;

    @Column(caption = "bizId", length = 40, notNull = true)
    private String bizId = StringUtil.empty;

    @Column(caption = "状态", length = 200, notNull = true)
    private String resultCode = StringUtil.empty;

    @Column(caption = "创建时间", notNull = true)
    private Date sendDate = new Date();

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getPhoneNumbers() {
        return phoneNumbers;
    }

    public void setPhoneNumbers(String phoneNumbers) {
        this.phoneNumbers = phoneNumbers;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCodeId() {
        return templateCodeId;
    }

    public void setTemplateCodeId(String templateCodeId) {
        this.templateCodeId = templateCodeId;
    }

    public String getTemplateValue() {
        return templateValue;
    }

    public void setTemplateValue(String templateValue) {
        this.templateValue = templateValue;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }
}
